package com.qf.springmvc.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 王博康
 * @version 1.0
 * @project 06_springmvc_interceptor
 * @description: TODO
 * @date 2022/3/9 19:34 星期三
 */
@RestController
@RequestMapping("/address")//此类中的方法路径前都应增加该路径再进行访问
public class AddressController {

    @RequestMapping("/test1")
    public String test1(){
        System.err.println("AddressController类的test1方法执行了...");
        return "qwerty";
    }

    @RequestMapping("/test2")
    public String test2(){
        System.err.println("AddressController类的test2方法执行了...");
        return "asdfghj";
    }


}
